import {
    Button
  } from "./module";
  
  const components = [
    Button
  ];
  
  function install(Vue){
      if(install.installed){
          return ;
      }
      install.installed = true;
      components.forEach(Component => {
          Component.install(Vue);
      });
  }
  
  const Color = {
      version: __VERSION__,
      install
  };
  
  components.forEach(Component => {
      const { name } = Component;
      Color[name] = Component
  });
  
  if(typeof window !== "undefined" && window.Vue){
      window.Vue.use(install);
  }
  
  export default Color;
  